package com.angel.infrastructure.db.mapper;

import com.angel.domain.angeluser.valueobjects.WeChatOpenId;
import com.angel.infrastructure.db.po.UserWechatInfoPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Optional;

/*
 * 更新关注微信公众号： 为了offer
 * @author parkin
 * @description
 * @date 2021/11/14
 */
@Mapper
public interface AngelUserWeChatInfoMapper extends BaseMapper<UserWechatInfoPO> {

    /**
     * 根据openId判断用户是否存在
     * @param openId
     * @return true 存在 false不存在
     */
    Optional<UserWechatInfoPO> get(@Param("openId") WeChatOpenId openId);


}
